package main

import (
	"web_server/controller"
	"web_server/utils"

	"github.com/gin-gonic/gin"
)

func main() {
	// gin.SetMode(gin.ReleaseMode)
	gin.SetMode(gin.DebugMode)

	router := utils.SetupRouter()
	controller.SetupRouter(router)
	port := utils.Config.Section("system").Key("http_port").String()
	if err := router.Run(":" + port); err != nil {
		panic(err)
	}
}
